package com.zcy.auth.service;

import com.zcy.auth.domain.Permission;
import com.zcy.basic.service.IBaseService;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author lucker
 * @since 2023-12-02
 */
public interface IPermissionService extends IBaseService<Permission> {

    void deleteAll();

    void addBatch(List<Permission> permissionList);

    List<Permission> getPermissionTree();

    List<Permission> getRolePermissionTree(Serializable id);

    List<Long> getPermissionIdsByRoleId(Serializable id);


}
